package com.js;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.CornerRadii;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

import java.net.URL;

public class Hello extends Application
{

    public void start(Stage stage) throws Exception {
        stage.initStyle(StageStyle.DECORATED);
//        stage.setWidth(800);
//        stage.setHeight(500);
//        面板

        AnchorPane root = new FXMLLoader(getClass().getResource("/fxml/index.fxml")).load();


//        场景
        Scene scene = new Scene(root);
//        scene.setFill(Color.TRANSPARENT);

//        舞台
        stage.setScene(scene);

        stage.show();
    }
}
